*{
    padding: 0;
    margin: 0;
    
}
html{
    perspective: 40rem;
    font-size: 5.333333vw;
}

.big{
    width: 18.75rem;
    height: 33.35rem;
    overflow: hidden;
    background-image: linear-gradient(to right, rgba(255,0,0,0), gray);
}




.cube{
    
    width: 10rem;
    height: 10rem;
    position: absolute;
    margin:  auto;
    margin-top: 10rem;
    transform-style: preserve-3d;
    animation: move 0.5s linear forwards;
    transform: rotateX(45deg) rotateY(45deg) ;
    transform: scalex(0.1) scaleY(0.1) scaleZ(0.1);
   
    img{
        opacity: 0.5;
    }

    
    .box:nth-child(1){
        transform: rotateY(90deg) translateZ(5rem);
    }
    .box:nth-child(2){
        transform: rotateY(-90deg) translateZ(5rem);
        animation: move1 0.5s 0.5s linear forwards;
    }
    .box:nth-child(3){
        transform: rotateX(-90deg) translateZ(-5rem);
        
    }
    .box:nth-child(4){
        transform: rotateX(90deg) translateZ(-5rem);
        
    }
    .box:nth-child(5){
        transform: rotateY(180deg) translateZ(-5rem);
        
    }
    .box:nth-child(6){
        transform:  translateZ(5rem);
        
    }
    
    
    .box{
        position: absolute;
        img{
            width: 10rem;
            height: 10rem;
            vertical-align: bottom;
            
        }
        
    }
    &:hover .haha3{
        display: block;
    }
    .haha3{
        width: 10rem;
        height: 2.5rem;
        border-radius: 1.25rem;
        position: absolute;
        top: -5.5rem;
        background-color: gray;
        left: -13rem;
        display: none;
        text-align: center;
        span{
            font-size: .6rem;
            &:nth-child(1){
                span{
                    color: red;
                }
                &:hover .haha4{
                    display: block;
                }
                .haha4{
                    width: 2rem;
                    height: 1rem;
                    border-radius: 1.25rem;
                    position: absolute;
                    top: 5.5rem;
                    border: 1px solid red;
                    left: 6rem;
                    display: none;
                }
            }
            }
        }
        

    
}
@keyframes move{
    form{
        transform: rotateX(0deg) rotateY(0deg) ;
        // top: 0rem; 
        // left: 0rem;
        transform: scale3d(0.1);
        transform: translateX(0) translateY(0);

        

    }
    
    to{
        transform: rotateX(360deg) rotateY(360deg) ;
        transform: scaleX(1) scaleZ(1) scaleY(1);
        transform: translateX(15rem) translateY(10rem);
    }
}

@keyframes move1{
    form{
       transform:rotateY(-90deg) rotateX(0);
    }
    to{
        transform: rotateY(-90deg) rotateX(-90deg);
        transform-origin: center bottom;
    }
}


.donghuagou{
    width: 5rem;
    height: 8rem;
    position: absolute;
    top: 25rem;
    
    .iconfont{
        
        font-size: 6rem;
        color: green
        
    }
    &:hover .haha2{
        display: block;

    }
    .haha2{
        width: 10rem;
        height: 2.5rem;
        border-radius: 1.25rem;
        position: absolute;
        top: -10.5rem;
        background-color: gray;
        left: 2.5rem;
        display: none;
        text-align: center;
        span{
            font-size: .6rem;
            
        }


    }
}
.donghuagou1{
    width: 2.5rem;
    height: 10rem;
    position: absolute;
    top: 28rem;
    color: orange;
    left: 5rem;
    .iconfont{
        font-size: 2.5rem;
    }
    &:hover .gou{
        display: block;
    }
    .gou{
        width: 10rem;
        height: 2.5rem;
        border-radius: 1.25rem;
        position: absolute;
        top: -13.5rem;
        background-color: gray;
        left: -2.5rem;
        display: none;
        text-align: center;
        line-height: 2.5rem;
        span{
            font-size: .6rem;
            color: black;
            &:nth-child(2){
                color: red;
            }
            
        }
        


    }
    
}
.gutou{
    position: absolute;
    width: 3rem;
    height: 3rem;
    top: 29.5rem;
    left: 20rem;
    transition:all 1s;
    animation:move3 0.5s 1s linear forwards;
   
    &:hover .haha{
        display: block;
    }
    
    .iconfont{
        
        font-size: 1rem;
        
    }
}




@keyframes move3{
    form{
        
        transform: translateX(0);
    }
    to{
        transform: translateX(-11.5rem);

    }
}
.qiang{
    
    width: 5rem;
    height: 5rem;
    text-align: center;
    position: absolute;
    top: 20rem;
    left: 6.7rem;
    animation: qianggutou 0.5s 1.5s linear forwards;
    transform: scaleX(0) scaleY(0);
    p{
        font-size: .7rem;
        color: orangered;
        a{
            text-decoration: none;
            color: orangered;
        }
    }
    span{
        font-size: 3rem;
        color: orangered;
        
    }
    

}
@keyframes qianggutou{
    form{
        transform: scaleX(0) scaleY(0) ;
    }
    to{
        transform: scaleX(1) scaleY(1) ;
    }
}
.gutou:hover .haha{
    
}
.haha{
    position: absolute;
    width: 10rem;
    height: 2.5rem;
    background-color: gray;
    top: -15rem;
    left: -6rem;
    display: none;
    border-radius: 1.25rem;
    text-align: center;
    span{
        font-size: .5rem;
    }
    
}


.kk{
    width: 5rem;
    height: 5rem;
    background-color: red;
    margin: auto;
    margin-top: 4rem;
    color: white;
    text-align: center;
    line-height: 5rem;
    border-radius: 2.5rem;
}
.ll{
    width: 5rem;
    height: 5rem;
    background-color: red;
    margin: auto;
   
    color: white;
    text-align: center;
    line-height: 5rem;
    border-radius: 2.5rem;
}
